<template>
	<view style="padding: 30rpx;">
        <navigator url="/pages/tabBar/api/LogPage/LogPage">
			<button>打印日志</button>
			</navigator>
		<navigator url="/pages/tabBar/api/TimerPage/TimerPage" open-type="switchTab">
			<button>计时器</button>
			</navigator>
		<navigator url="/pages/tabBar/api/StoragePage/StoragePage">
			<button>数据缓存</button>
			</navigator>
		<navigator url="/pages/tabBar/api/RefreshPage/RefreshPage">
			<button>页面刷新</button>
			</navigator>	
		<navigator url="/pages/tabBar/api/com-api/com-api">
			<button>图片预览</button>
			</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			uni.preloadPage({
				url:"/pages/tabBar/api/StoragePage/StoragePage"
			})
		},
		methods: {
			getStorage(){
				uni.navigateTo({
					url:"/pages/tabBar/api/StoragePage/StoragePage",
					success() {
						console.log("navigateTo--->success");
					},
					fail(e) {
						console.log("navigateTo--->fail:" + JSON.stringify(e));
					},
					complete() {
						console.log("navigateTo--->complete");
					}
				})
				
				//uni.redirectTo({
					//url:"/pages/tabBar/api/StoragePage/StoragePage"
				//})
			}
		}
	}
</script>

<style>
button{
	margin: 30rpx;
}
</style>
